package com.smartwebx.ha.web.admin.module.screen.user;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.dataresolver.Param;
import com.google.common.base.Splitter;
import com.smartwebx.ha.biz.assign.HaUserManager;

public class AjaxResetPass {
	@Autowired
	private HaUserManager haUserManager;

	public void execute(@Param("userids") String userids) throws Exception {
		Iterable<String> userIds=Splitter.on(",").trimResults().split(userids);
		for(String userId:userIds){
			haUserManager.resetPass(Integer.parseInt(userId));
		}
		
	}

}
